/**
 * Created by Administrator on 2017/1/11.
 */
import {Component,OnInit,ViewChild} from "@angular/core";
import  { SecondService } from "../service/second.service";

import {KSSwiperContainer, KSSwiperSlide}    from 'angular2-swiper';
@Component({
  selector:"second-info",
  templateUrl:"./info.html",
  styleUrls:["./info.less"],
  providers : [SecondService]
})

export class SecondInfoComponent  implements OnInit{

  secondInfoData : any;

  constructor(private secondService :SecondService){}

  ngOnInit(){
    console.log("second info init...",this);
    this.secondInfoData = this.secondService.getInfoData("loll").subscribe(function(res){
      console.log(res);
      this.secondInfoData = res;
    });
  }
}
